package com.mf.mapper.basic;

import com.mf.entity.dto.basic.DtoPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 权限表
 *
 */
@Mapper
public interface MapperPermission extends BaseMapper<DtoPermission> {
    /**
     * 根据角色id查询绑定的权限
     */
    List<DtoPermission> findByRoleId( Integer roleId);
    /**
     * 根据角色id查询待绑定权限
     */
    List<DtoPermission> findByNoRoleId(Integer roleId);
}
